package personal.lijun.skeleton.springcloud.gateway;

import org.springframework.security.core.userdetails.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @Auther: lijun@sstcsoft.com
 * @Date: 2019/9/25 15:29
 */
public interface PersonRepository {
    Mono<Person> getPerson(int id);

    Flux<Person> allPeople();

    Mono<Void> savePerson(Mono<Person> person);

    Mono<Void> callUserNext(Mono<User> userMono);
}
